package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Notice;
import com.example.entity.Params;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface NoticeMapper extends BaseMapper<Notice> {


    List<Notice> findBySearch(@Param("params") Params params);

    @Select("select * from notice order by time desc limit 3")
    List<Notice> findNotice();
}
